from django.urls import path, re_path, include
from . import views

from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('movie', views.MovieView, 'movie')
router.register('new_movie', views.NewMovieView, 'new_movie')
router.register('movie_detail', views.MovieDetailView, 'movie_detail')
router.register('', views.CategoryMovieView, 'category_movie')
router.register('category', views.MovieCategoryView, 'category')
router.register('', views.MovieTop5View, 'top5')
router.register('search', views.MovieSearchView, 'search')
router.register('comment', views.CommentView, 'comment')

urlpatterns = [
    path('', include(router.urls)),
]
